﻿<Window xmlns:my="clr-namespace:Brjnk.Common.UI;assembly=Common"  x:Class="Brjnk.GpxExplorer.UI.MapCacheXmlExceptionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        Title="{l:Loc titleMapCacheException}" MinHeight="150" MinWidth="300" Width="400" Height="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Style="{StaticResource ErrorStyle}" TextWrapping="Wrap" Grid.Row="0" Text="{l:Loc mapCacheDamaged}" />
        <my:ObjectPresenter Grid.Row="1" Object="{Binding}" />
        <UniformGrid Columns="2" Grid.Row="2" HorizontalAlignment="Right">
            <Button Content="{l:Loc mapCacheDoNotUseCache}" Click="Button_Click_1" />
            <Button Click="Button_Click">
                <Button.Content>
                    <TextBlock Text="{l:Loc mapCacheRecreate}" FontWeight="Bold" />
                </Button.Content>
            </Button>
        </UniformGrid>
    </Grid>
</Window>